// 菜单路由配置
export const menuRoutes = [
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    redirect: '/login',
    meta: {
      title: '首页',
      icon: 'home',
      order: 1,
      alwaysShow: true,
    },
    children: [
      {
        path: 'dashboard',
        name: 'dashboard',
        component: () => import('pages/IndexPage.vue'),
        meta: {
          title: '表单组件',
          icon: 'dashboard',
          affix: true,
          noCache: false,
        },
      },

      {
        path: '/example/table',
        name: 'TableExample',
        component: () => import('pages/Example/TableExample/TableExample.vue'),
        meta: {
          title: '表格示例',
          icon: 'table_view',
          order: 3,
        },
      },
      {
        path: '/example/tree_table',
        name: 'TreeTableExample',
        component: () => import('pages/Example/TreeTableExample/TreeTableExample.vue'),
        meta: {
          title: '树表格示例',
          icon: 'table_view',
          order: 3,
        },
      },
    ],
  },
  {
    path: '/system',
    component: () => import('layouts/MainLayout.vue'),
    meta: {
      title: '系统管理',
      icon: 'settings',
      order: 2,
      alwaysShow: true,
    },
    children: [
      {
        path: 'menu',
        name: 'menuManagement',
        component: () => import('pages/System/Menu.vue'),
        meta: {
          title: '菜单管理',
          icon: 'menu',
          permission: 'menu:view',
          noCache: false,
        },
      },
    ],
  },
]
